#[cfg(test)]
mod tests {
    use super::*;
    #[test]
    fn test_func_ptr() {
        const BUFFER_SIZE3: usize = 18;
        let mut buffer = [0; BUFFER_SIZE3];
        let expected_buffer = [
            97, 97, 97, -98, 1, 0, 0, 1, 65, 66, 68, 69, 97, 97, 97, 1, 97, 98,
        ];

        unsafe {
            entry3(BUFFER_SIZE3 as u32, buffer.as_mut_ptr());
        }
        
        assert_eq!(&rust_buffer[..], &expected_buffer[..]);
    }
}